﻿@model RedSand.Site.Models.UserInfo
           
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="dialog" title="Profile" style="width:350px">
    @using (Ajax.BeginForm(AdminAjaxOptions.UpdateRecord))
    {
        <div class="dialog-content">
            <div class="form-cell none-float">
                @Html.HiddenFor(model => model.UserID)
                @Html.HiddenFor(model => model.Password)
                @Html.HiddenFor(model => model.JoinDate)
                @Html.LabelFor(model => model.Username)
                @Html.HiddenFor(model => model.Status)
                @Html.TextBoxFor(model => model.Username, new { @readonly = "readonly", @class = "disabled" })
            </div>
            <div class="form-cell none-float">
                @Html.LabelFor(model => model.Fullname)
                @Html.EditorFor(model => model.Fullname)
            </div>
            <div class="form-cell none-float">
                @Html.LabelFor(model => model.Email)
                @Html.EditorFor(model => model.Email)
            </div>
            <div class="form-cell none-float">
                @Html.TranslateFor(model => model.Phone, "Account")
                @Html.TextBoxFor(model => model.Phone)
            </div>
            <div class="form-cell none-float">
                @Html.TranslateFor(model => model.Birthday, "Account")
                @Html.TextBox("Birthday", Model.Birthday.HasValue ? Model.Birthday.Value.ToShortDateString() : "", new { @class = "date-picker" })
            </div>
            <div class="clear"></div>
        </div>
        <div class="dialog-footer">
            <input type="submit" value="@Html.Translate("Save")" />
            <input type="button" value="@Html.Translate("Cancel")" onclick="closeDialog('.dialog')" />
        </div>
    }
</div>
